<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Gift/index')}">所有栏目</a></li>
        <!--<li><a href="{:url('Gift/add')}">添加礼品</a></li>-->
    </ul>
<!--    <form method="post" class="js-ajax-form margin-top-20" action="#">-->
<!--            <div class="table-actions">-->
<!--                <button class="btn btn-sm btn-success js-ajax-submit" type="submit"-->
<!--                        data-action="{:url('Gift/toggle',array('status'=>1))}" data-subcheck="true">{:lang('DISPLAY')}-->
<!--                </button>-->
<!--                <button class="btn btn-sm btn-danger js-ajax-submit" type="submit"-->
<!--                        data-action="{:url('Gift/toggle',array('status'=>2))}" data-subcheck="true">{:lang('HIDDEN')}-->
<!--                </button>-->
<!--            </div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="40">ID</th>
                <th>栏目名称</th>
                <th>关键词</th>
                <th>描述</th>
                <th width="160">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <php>$status=array("1"=>lang('DISPLAY'),"2"=>lang('HIDDEN'));</php>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.keyword}</td>
                    <td>{$vo.desc}</td>
                    <td>
                        <a class="btn btn-xs btn-success"  href="{:url('Gift/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <!--<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Gift/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>-->
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>